// Author: Bjorn Schobben

#ifndef LINESEGMENT_H
#define LINESEGMENT_H
#include "Point.h"

class LineSegment
{
public:
	//Constructors
	LineSegment(Point newp0, Point newp1);
	LineSegment();

	//Destructor
	~LineSegment();

	//LineSegment operations
	void SetLine(Point newp0, Point newp1);
	bool Contains(const Point& point) const;
	bool OverlapsWith(const LineSegment& rhs) const;

	//Overloaded operators
	bool operator==(const LineSegment& rhs) const;

private:
	//The 2 points which determine the linesegment
	Point p0;
	Point p1;
};

#endif //LINESEGMENT_H